package com.aaa.dao;


import com.aaa.entity.T_KouFen;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface T_KouFenDao {

    @Select(" <script> SELECT name,SHtime,cpscore  from regist  where 1=1  <if test=\"name!=null and name!=''\"> and name like concat('%',#{name},'%')</if> and state=1 limit #{start},#{pageSize} </script>")
    List<T_KouFen> selectAll(Map map);
    @Select("<script> select count(name) from regist where 1=1 <if test=\"name!=null and name!=''\">  and name like concat('%',#{name},'%')</if> </script> ")
    Integer  getCount(Map map);
}
